// pages/Jump/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    url: ''
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    console.log(options.name)
    let name = options.name;
    let url = '';
    if(name == 'supermarket'){
      console.log(1)
      url = 'https://yun.wuyeyunpingtai.com/addons/we7_wmall/template/vue/index.html?menu=#/pages/store/goods?sid=580&i=8';
    }else if(name == 'order'){
      url = 'https://yun.wuyeyunpingtai.com/addons/we7_wmall/template/vue/index.html?menu=#/pages/store/goods?sid=581&i=8';
    }
    this.setData({
      url,
    });
  },
})